﻿@model Whoever.Health.Website.Models.DocumentTypeViewModel

<div data-bind="with: viewModel.Entity">
    @using (Html.BeginForm("Create", "Contact", FormMethod.Post, new { id = "create", @data_bind = "submit: viewModel.Create" }))
    {
        <div class="form-group">
            @Html.LocalizedLabelFor(model => model.Entity.Name)
            @Html.TextBoxFor(model => model.Entity.Name, new { @data_bind = "value: Name, css: { inputerror: Name.hasError }", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Name.PlaceHolder") })
        </div>
        <div class="form-group">
            @Html.LocalizedLabelFor(model => model.Entity.Description)
            @Html.TextBoxFor(model => model.Entity.Name, new { @data_bind = "value: Name, css: { inputerror: Description.hasError }", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Description.PlaceHolder") })
        </div>
                
        @*
            @Html.LocalizedLabelFor(model => model.ContactTypeSelectList)
            @Html.KOLocalizedSelectFor(model => model.ContactTypeSelectList, Model.ContactTypeSelectList, "Name", "Id", "Type")        
        *@

        <button data-bind="click: viewModel.AttempLogin" type="button" class="btn btn-action btn-full-width">@Html.LocalizedAction("Create")</button> 
    }
</div>
